#ifndef GAMESCENE_H
#define GAMESCENE_H

#include "coin.h"
#include "dataconfig.h"
#include "mypushbutton.h"
#include "stdfax.h"
#include <QMainWindow>

class GameScene : public QMainWindow
{
    Q_OBJECT
public:
    explicit GameScene(QWidget *parent = nullptr);
    GameScene(int levelNum);
    virtual void paintEvent(QPaintEvent *event);
    void FlipCoin(int x, int y);

signals:
    void BacktoSelect();

private:
    int levelIndex;
    int gameArray[4][4];   // 存储当前关卡的数据
    Coin *coinArray[4][4]; // 存储金币按钮
    bool Victory = false;  // 胜利标志
};

#endif // GAMESCENE_H
